|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Functions | |
| void | main (void) |
| void | WDT_A_ISR (void) |
Variables | |
| char | TxString |
| char | RxString |
| void main | ( | void | ) |
Definition at line 78 of file dma_ex3_singleTransferSPI.c.
References __delay_cycles(), __no_operation(), GPIO_setOutputLowOnPin(), param, RxString, and TxString.
| void WDT_A_ISR | ( | void | ) |
Definition at line 227 of file dma_ex3_singleTransferSPI.c.
References GPIO_setOutputHighOnPin(), GPIO_setOutputLowOnPin(), RxString, and TxString.
| char RxString |
Definition at line 76 of file dma_ex3_singleTransferSPI.c.
Referenced by main(), and WDT_A_ISR().
| char TxString |
DMA - Single Transfer using SPI, TX on DMA Channel 0, RX on DMA Channel 1
This is the SPI Master. This code has to be used with USCI_A_SPI_slave.c (slave SPI). DMA channel 0 is used to transfer a single byte while DMA channel 1 is used to RX from slave SPI at the same time. This code will set P1.0 if RX character is correct and clears P1.0 if received character is wrong. Watchdog in interval mode triggers block transfer every 1000ms. ACLK = REFO = 32kHz, MCLK = SMCLK = default DCO 1048576Hz
MSP430F552x
-----------------
/|\| XIN|-
| | | 32kHz
--|RST XOUT|-
| |
| P1.0|-> LED
| P3.3/UCA0SIMO|-> Data Out
| P3.4/UCA0SOMI|<- Data In
| P2.7/UCA0CLK|-> Serial Clock Out
| |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 75 of file dma_ex3_singleTransferSPI.c.
Referenced by main(), and WDT_A_ISR().